home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / ld / scriptte / h8500s.sc < prev    next >
Encoding:
Text File  |  1994-09-07  |  751 b   |  59 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. /* Code and data, both 64k */
  6.  
  7. SECTIONS                 
  8. {                     
  9. .text ${RELOCATING+ 0x10000 } :
  10.     {                     
  11.       *(.text)                 
  12.     *(.rdata); 
  13.       *(.strings)
  14.     ___ctors = . ;
  15.     *(.ctors)
  16.     ___ctors_end = . ;
  17.     ___dtors = . ;
  18.     *(.dtors)
  19.     ___dtors_end = . ;
  20.         ${RELOCATING+ _etext = . ; }
  21.     }
  22.  
  23.  
  24. .data  ${RELOCATING+ 0x20000 } :
  25.     {
  26.     *(.data)
  27.     ${RELOCATING+ _edata = . ; }
  28.     } 
  29.  
  30.  
  31. .bss  ${RELOCATING+ .} :
  32.     {
  33.     ${RELOCATING+ __start_bss = . ; }
  34.     *(.bss)
  35.     *(COMMON)
  36.     ${RELOCATING+ _end = . ;  }
  37.     }
  38.  
  39. .stack  ${RELOCATING+ 0x2fff0} :
  40.     {
  41.     ${RELOCATING+ _stack = . ; }
  42.     *(.stack)
  43.     } 
  44.  
  45.   .stab  0 ${RELOCATING+(NOLOAD)} : 
  46.   {
  47.     [ .stab ]
  48.   }
  49.   .stabstr  0 ${RELOCATING+(NOLOAD)} :
  50.   {
  51.     [ .stabstr ]
  52.   }
  53. }
  54. EOF
  55.  
  56.  
  57.  
  58.  
  59.